<?php
/**
 * Created by PhpStorm.
 * User: Will
 * Date: 2018/1/17
 * Time: 17:46
 */

namespace common\modules\base;

class Module extends \yii\base\Module
{
    public function init()
    {
        parent::init();
        $this->baseConfigure();
    }

    /*
     * 自动加载模块的配置
     */
    public function baseConfigure()
    {
        $config = require __DIR__ . '/config/index.php';
        $config && \Yii::configure($this, $config);
    }
}